package com.rainwood.water_authority.http.model;

/**
 * @author sxs
 * @date :2020/8/20
 * @description: 统一接口数据结构
 */
public class HttpData<T> {

    @Override
    public String toString() {
        return "HttpData{" +
                "code=" + code +
                ", warn='" + warn + '\'' +
                ", data=" + data +
                '}';
    }

    /** 返回码 */
    private int code;
    /** 提示语 */
    private String warn;
    /** 数据 */
    private T data;

    public int getCode() {
        return code;
    }

    public String getWarn() {
        return warn;
    }

    public T getData() {
        return data;
    }
}